package com.asj.house.client;

import com.asj.house.config.feign.HouseRoomMapFeignConfig;
import com.asj.house.returns.RespEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "houseRoomMapClient", url = "${house.url}", configuration = HouseRoomMapFeignConfig.class)
public interface HouseRoomMapClient {

    /**
     * 获取房源地图经纬度信息列表
     * @return
     */
    @GetMapping("/house-room-map/list")
    RespEntity listHouseRoomMap();

    /**
     * 获取房源的地图信息
     * @param roomId
     * @return
     */
    @GetMapping("/house-room-map/room")
    RespEntity getRoomMap(@RequestParam(value = "roomId", required = true) Integer roomId);

}
